package ui;

import javax.swing.*;

public class AdminFrame extends JFrame {
    public AdminFrame() {
        setTitle("管理员界面");
        setSize(400, 200);
        setLocationRelativeTo(null);
        setDefaultCloseOperation(EXIT_ON_CLOSE);

        JButton signInBtn = new JButton("学生签到");
        JButton recordBtn = new JButton("查看签到记录");

        JPanel panel = new JPanel();
        panel.add(signInBtn);
        panel.add(recordBtn);
        add(panel);

        signInBtn.addActionListener(e -> new SignInFrame());
        recordBtn.addActionListener(e -> new RecordFrame());

        setVisible(true);
    }
}
